﻿CREATE TABLE [dbo].[ArticulosSustitutos] (
    [IdArticulo]          INT NOT NULL,
    [IdArticuloSustituto] INT NOT NULL,
    CONSTRAINT [PK_ArticulosSustitutos] PRIMARY KEY CLUSTERED ([IdArticulo] ASC, [IdArticuloSustituto] ASC),
    CONSTRAINT [FK_ArticulosSustitutos_Articulos] FOREIGN KEY ([IdArticulo]) REFERENCES [dbo].[Articulos] ([IdArticulo]),
    CONSTRAINT [FK_ArticulosSustitutos_ArticulosSustitutos] FOREIGN KEY ([IdArticuloSustituto]) REFERENCES [dbo].[Articulos] ([IdArticulo])
);

